<html>
  <head>
    <title>ES6标准参考教程</title>
    <script>
      var loc = 'http://es6.ruanyifeng.com';
      var regex = /http:\/\/es6\.ruanyifeng\.com\/docs\/([^#]+)#(.+)/;
      var result = regex.exec(window.location);
      if (result) {
        window.location = loc + '/#docs/' + result[1] + '#' + result[2];
      } else {
        window.location = loc;
      }
    </script>
  </head>
  <body>
    <p>redirecting...</p>
  </body>
</html>
